package vo

type CreateUserReq struct {
	Phone    string `binding:"required,mobile" json:"phone" form:"phone"`
	UserName string `binding:"required,min=2" json:"username" form:"userName"`
	Password string `binding:"required,min=6,max=30" json:"password" form:"password"`
	IsAdmin  int64  `binding:"required" json:"isAdmin" form:"isAdmin"`
}

type UserSearchReq struct {
	//form.PaginateForm
	SearchKey  string `json:"searchKey" form:"searchKey" binding:"-"`
	UserStatus bool   `form:"userStatus" json:"userStatus" binding:"-"`
	CreateDate string `form:"createDate" json:"createDate" binding:"-"`
}

type PwdLoginReq struct {
	UserName    string `form:"username" json:"username" binding:"required"`
	Password    string `form:"password" json:"password" binding:"required,min=6,max=30"`
	CaptchaCode string `form:"captcha_code" json:"captcha_code" binding:"required,min=3,max=6"`
	CaptchaId   string `form:"captcha_id" json:"captcha_id" binding:"required,min=3,max=200"`
}

type RegisterUserReq struct {
	Username    string `json:"username"`
	Password    string `json:"password"`
	RPassword   string `json:"rpassword"`
	CaptchaCode string `json:"captcha_code"`
	CaptchaId   string `json:"captcha_id"`
}
